// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import VueRouter from './router/routes.js'
import App from './App'
import Store from './store/index.js'

import axios from './axios/config.js'
Vue.prototype.$axios = axios

// Vue.use(VueRouter)
//
// const routes = [
//   // 默认页面
//   {
//     path: '/',
//     component: Login
//   },
//   {
//     path: '/login',
//     component: Login
//   },
//   {
//     path: '/home',
//     component: Home
//   }
// ]
//
// const router = new VueRouter({
//   routes
// })

FastClick.attach(document.body)

// Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  router: VueRouter,
  store: Store,
  template: '<App/>',
  components: {App}
  // render: h => h(App)
}).$mount('#app-box')
